import request from "@/api/http"

export const getPersonalInfo = (id) => {
    let url = '/account/user_info?userID=' + id
    return request({
        url,
        method: 'get',
    })
}

export const updatePersonalInfo = (info) => {
    let url = '/account/update_info'
    return request({
        url,
        method: 'put',
        data: info
    })
}

export const getExpInfo = (info) => {
    let url = '/account/Employee_info?userID='+info
    return request({
        url,
        method: 'get',
    })
}

export const getFollowCount = (id) => {
    let url = '/follow_sys/count_follow?targetUserId='+id
    return request({
        url,
        method: 'get',
    })
}

export const getFollowStatus = (id,from_id)=>{
    let url = '/follow_sys/verify_follow?followerUserId='+id+'&followedUserId='+from_id
    return request({
        url,
        method: 'get',
    })
}

export const handleFollowMe = (id) => {
    let url = '/follow_sys/follow_user/'
    return request({
        url,
        method: 'post',
        data:{
            "followee_user_id":id
        }
    })
}

export const handleUnFollowMe = (id) => {
    let url = '/follow_sys/unfollowUser'
    return request({
        url,
        method: 'post',
        data:{
            "followedId":id
        }
    })
}